home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 2
/
Amiga Tools 2.iso
/
dfue
/
elcheapofax
/
printers
/
rcs
/
density.c,v
< prev
next >
Wrap
Text File
|
1995-03-09
|
1KB
|
82 lines
head 1.2;
access;
symbols
OCT93:1.2;
locks;
comment @ * @;
1.2
date 93.06.11.16.29.21; author Rhialto; state Exp;
branches;
next 1.1;
1.1
date 93.06.11.15.08.07; author Rhialto; state Exp;
branches;
next ;
desc
@SetDensity()
@
1.2
log
@First real RCS checkin
@
text
@/* $Id$
* $Log$
*/
/*
* DENSITY.C
*
* David Berezowski - March/88.
* Modified for DICE - May/91 Matthew Dillon
* Modified for ElCheapoFax April 1993 Olaf 'Rhialto' Seibert.
*
* Copyright (c) 1988 Commodore-Amiga, Inc.
* (c)Copyright 1991 Matthew Dillon
* (c)Copyright 1993 Olaf Seibert
*/
#include "defs.h"
Prototype short SetDensity(ULONG);
short
SetDensity(density_code)
ULONG density_code;
{
#define FINE Y_DPI
#define CRUDE Y_DPI/2
#define N LINE_BITS /* maybe will support different LINE_BITS_? values later */
/* SPECIAL_DENSITY 0 1 2 3 4 5 6 7 */
static int YDPI[8] = { CRUDE, CRUDE, CRUDE, CRUDE, FINE, FINE, FINE, FINE };
static char XPIXELS[8] = {N, N, N, N, N, N, N, N };
density_code /= SPECIAL_DENSITY1;
/* default is 80 chars (8.0 in.), W_TRACTOR is 136 chars (13.6 in.) */
PED->ped_MaxXDots = XPIXELS[density_code];
PED->ped_XDotsInch = X_DPI;
PED->ped_YDotsInch = YDPI[density_code];
return 0;
}
@
1.1
log
@Initial revision
@
text
@d1 3
@